package cate.common.table.activity.mooncake.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.base.RechargeAddUpBaseRow;
import cate.common.table.activity.mooncake.row.MooncakeExchangeRow;

import java.util.Map;
import java.util.stream.Collectors;

public class MooncakeExchangeSheet extends ESheet<MooncakeExchangeRow> {
    @Override
    public String getSheetName() {
        return "中秋活动兑换";
    }


    public Map<Integer, MooncakeExchangeRow> findConfigs(int configId) {
        return getList().stream().filter(row -> row.configId == configId)
                .collect(Collectors.toMap(row -> row.id, row -> row));
    }
}
